/**
 * @file      stk_upgrade.h
 * @copyright Copyright (c) 2020, CYG-ZCW Co., Ltd. All Rights Reserved.
 * @brief     brief
 * @author    caiwang213@qq.com
 * @date      2020-09-09 20:48:11
 *
 * @note
 *  stk_upgrade.h defines
 */
#ifndef __STK_UPGRADE_H__
#define __STK_UPGRADE_H__
#include "stk_base.h"

namespace stk
{
class STK_API Upgrade : public MsgField
{
public:
    Upgrade();
    Upgrade(const Upgrade &src);
    Upgrade(const char *buf, int len);
    virtual ~Upgrade();

public:
    Upgrade & operator= (const Upgrade& oSrc);

    virtual	void 	clear();
    virtual	bool	isvalid() const;
    virtual int32_t	to_str(string & str);
    virtual int32_t	parse(const char * szBuf, int nBufLen);

public:
    string		    m_strValue;                /**< value for Upgrade (size of attachments) */
};
}
#endif
